. .\My-Logger.ps1 

$logger = My-Logger $pwd\testLog\test.txt PowerShell
$logger.Info("Info Message")
$logger.Debug("Debug Message")
$logger.Fatal("Fatal Message")